package com.hl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.mapper.RefundMapper;
import com.hl.domain.Refund;
import com.hl.service.IRefundService;

/**
 * 退款记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
@Service
public class RefundServiceImpl implements IRefundService 
{
    @Autowired
    private RefundMapper refundMapper;

    /**
     * 查询退款记录
     * 
     * @param id 退款记录主键
     * @return 退款记录
     */
    @Override
    public Refund selectRefundById(Integer id)
    {
        return refundMapper.selectRefundById(id);
    }

    /**
     * 查询退款记录列表
     * 
     * @param refund 退款记录
     * @return 退款记录
     */
    @Override
    public List<Refund> selectRefundList(Refund refund)
    {
        return refundMapper.selectRefundList(refund);
    }

    /**
     * 新增退款记录
     * 
     * @param refund 退款记录
     * @return 结果
     */
    @Override
    public int insertRefund(Refund refund)
    {
        return refundMapper.insertRefund(refund);
    }

    /**
     * 修改退款记录
     * 
     * @param refund 退款记录
     * @return 结果
     */
    @Override
    public int updateRefund(Refund refund)
    {
        return refundMapper.updateRefund(refund);
    }

    /**
     * 批量删除退款记录
     * 
     * @param ids 需要删除的退款记录主键
     * @return 结果
     */
    @Override
    public int deleteRefundByIds(Integer[] ids)
    {
        return refundMapper.deleteRefundByIds(ids);
    }

    /**
     * 删除退款记录信息
     * 
     * @param id 退款记录主键
     * @return 结果
     */
    @Override
    public int deleteRefundById(Integer id)
    {
        return refundMapper.deleteRefundById(id);
    }
}
